﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="MyLogin.ascx.cs" Inherits="MyLogin" %>
<asp:Panel ID="pnl_Login" runat="server" Width="129px" CssClass="styleDangNhap">
    <asp:Login ID="Login1" runat="server" OnLoggingIn="Login1_LoggingIn" PasswordLabelText="Mật khẩu"
        PasswordRequiredErrorMessage="Yêu cầu nhập mật khẩu" UserNameLabelText="Tên đăng nhập"
        UserNameRequiredErrorMessage="Yêu cầu nhập Tên đăng nhập"
        BorderColor="#B5C7DE" BorderPadding="4" BorderStyle="Solid" BorderWidth="0px"
        Font-Names="Verdana" ForeColor="#333333" Width="16px">
        <TextBoxStyle Font-Size="0.8em" />
        <LoginButtonStyle BackColor="White" BorderColor="#7D7D7D" BorderStyle="Solid" BorderWidth="1px"
            Font-Names="Verdana" ForeColor="#284E98" />
        <LayoutTemplate>
            <table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse;">
                <tr>
                    <td>
                        <table border="0" cellpadding="0" style="width: 129px;">

                            <tr>
                                <td align="left">
                                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" 
                                        Font-Size="Small">Tên đăng nhập</asp:Label>
                                </td>
                                <tr>
                                    <td>
                                        <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                            ErrorMessage="Yêu cầu nhập Tên đăng nhập" ToolTip="Yêu cầu nhập Tên đăng nhập"
                                            ValidationGroup="ctl00$Login1">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                            </tr>
                            <tr>
                                <td align="left">
                                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" 
                                        Font-Size="Small">Mật khẩu</asp:Label>
                                </td>
                                <tr>
                                    <td>
                                        <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                            ErrorMessage="Yêu cầu nhập mật khẩu" ToolTip="Yêu cầu nhập mật khẩu" ValidationGroup="ctl00$Login1">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">
                                    <asp:CheckBox ID="RememberMe" runat="server" Text="Ghi nhớ" Font-Size="Small" />
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2" style="color: Red;">
                                    <asp:Literal ID="FailureText" runat="server" EnableViewState="False" Text=""></asp:Literal>
                                </td>
                            </tr>
                            
                            
                            <tr>
                                <td align="center" colspan="2">
                                    <asp:Button ID="LoginButton" runat="server"
                                         CommandName="Login" Font-Names="Verdana"
                                    Text="Log In" ValidationGroup="ctl00$Login1"
                                         CssClass="exclusive" />
                                </td>
                                <tr>
                                <td align="right">
                                <br />
                                <asp:HyperLink ID="HyperLink1" runat="server" Text="Quên mật khẩu" 
                                        NavigateUrl="~/Account/ForgottenPassword.aspx" Font-Size="X-Small"></asp:HyperLink>
                            </td>
                            </tr>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </LayoutTemplate>
        <InstructionTextStyle Font-Italic="True" ForeColor="Black" />
        <TitleTextStyle BackColor="#507CD1" Font-Bold="True" Font-Size="0.9em" ForeColor="White" />
    </asp:Login>
</asp:Panel>
<asp:Panel ID="pnl_Logout" runat="server" Height="125px" Width="136px" CssClass="styleDangNhap">
    <br />
   
    
    <div align="center">
    <asp:HyperLink ID="hlUserName" runat="server">HyperLink</asp:HyperLink>
        <p><asp:HyperLink ID="hlMessage" runat="server" 
                NavigateUrl="~/Message/XemTinNhan.aspx">HyperLink</asp:HyperLink></p>
        <asp:HyperLink ID="hlAutoUp" runat="server" NavigateUrl="~/Account/DanhSachTinRaoVat.aspx">AutoUp</asp:HyperLink>
        <br />
        <asp:Button ID="btn_Logout" runat="server" Text="Logout" OnClick="btn_Logout_Click" CssClass="exclusive" />
    </div>
</asp:Panel>
<br />
